from business.Admin.Competition.competitionlist import ComList

import re
import time
from datetime import datetime

from business.Admin.TrainingBank import TrainingBank
import unittest
from business.login import Login
from pom.base import BaseDriver
from ddt import data, ddt, unpack
from selenium import webdriver

@ddt
class TestCompetationBank(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Chrome()
        BaseDriver(self.driver).get_url()
        self.l = Login(self.driver)
        time.sleep(1)
        self.c = ComList(self.driver)
        # self.l.account_login("jiayingjie@forensix.cn", "Jyj1234!")
        self.l.account_login("admin@forensix.cn", "123456")
        time.sleep(1)
        self.c.jump_competitionlist()

    def tearDown(self):
        time.sleep(5)
        BaseDriver(self.driver).quit_webdriver()

    def testpass(self):
        pass